#include "junix.h"
#include <boost/pool/pool.hpp>

void func()
{
	  boost::pool<> p(sizeof(int));
	    for (int i = 0; i < 10000; ++i)
		{
			void* t = p.malloc();
		}
} // on function exit, p is destroyed, and all malloc()'ed ints are implicitly freed

int main()
{
	func();
}
